package com.lazyboyl.sharding.proxy.config;

/**
 * @author linzef
 * @since 2021-06-29
 * 类描述： MySQL的静态常量的枚举类
 */
public enum MySqlConfigEnum {

    PROTOCOL_VERSION("协议版本", 10),
    SERVER_VERSION("服务器版本", "5.1.1-spring-boot-sharding-sphere-proxy-1.0"),
    DEFAULT_CHARSET("默认编码方式", "utf8");

    private String description;

    private Object value;

    MySqlConfigEnum(String description, Object value) {
        this.description = description;
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

    public String getStrValue() {
        return (String) value;
    }

    public Integer getIntegerValue() {
        return (Integer) value;
    }

}
